GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Short fix to make x-labels align correctly with the buckets · jhludwig/bashplotlib@b53d5d1

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • bashplotlib
    • histogram.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎bashplotlib/histogram.py‎

Copy file name to clipboardExpand all lines: bashplotlib/histogram.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def plot_hist(f, height=20.0, bincount=None, binwidth=None, pch="o", colour="def
165165
else:
166166
printcolour(" ", True, colour)
167167
print
168-
xs = hist.keys() * 2
168+
xs = hist.keys()
169169

170170
print " " * (nlen+1) + "-" * len(xs)
171171

@@ -175,8 +175,8 @@ def plot_hist(f, height=20.0, bincount=None, binwidth=None, pch="o", colour="def
175175
printcolour(" " * (nlen+1), True, colour)
176176
for x in range(0, len(hist)):
177177
num = str(bins[x])
178-
if x % 2 == 0:
179-
print " ",
178+
if x % 2 != 0:
179+
pass
180180
elif i < len(num):
181181
print num[i],
182182
else:

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.