Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b72d3a6

Browse files
committed
[ 2314869 ] Log base-2 axes fail with certain axis limits
svn path=/trunk/matplotlib/; revision=6442
1 parent 45a5ab6 commit b72d3a6

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

CHANGELOG

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
2008-11-24 Fix crash in log ticking. - MGD
2+
13
2008-11-20 Added some static helper methods
24
BrokenHBarCollection.span_masked and
35
PolyCollection.fill_between_where for visualizing logical

lib/matplotlib/ticker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,7 @@ def __call__(self):
10371037

10381038
decades = np.arange(math.floor(vmin),
10391039
math.ceil(vmax)+stride, stride)
1040-
if len(subs) > 1 or subs[0] != 1.0:
1040+
if len(subs) > 1 or (len(subs == 1) and subs[0] != 1.0):
10411041
ticklocs = []
10421042
for decadeStart in b**decades:
10431043
ticklocs.extend( subs*decadeStart )

0 commit comments

Comments
 (0)