Skip to content

Drops last tick label for some ranges #1310

Closed
@tacaswell

Description

@tacaswell

For some values (related to multiples of .3 and .7 it seems) drop the last tick label.

expected: the last tick to be labeled, spacing of .1 between major ticks
get: all be last label are correct

The following demonstration is assumed to be in an interactive shell with pylab imported

fig = figure()
ax = gca()
draw()
ax.get_yaxis().set_major_locator(matplotlib.ticker.MultipleLocator(0.1))
ax.set_ylim([0,.2]); draw() # works
ax.set_ylim([0,.3]); draw() # fail
ax.set_ylim([0,.4]); draw() # works
ax.set_ylim([0,.6]); draw() # fail
ax.set_ylim([0,.7]); draw() # fail
ax.set_ylim([0,1.2]); draw() # fail
ax.set_ylim([0,1.4]); draw() # fail

tested against master branch.

In [17]: matplotlib.version
Out[17]: '1.2.0rc2'

using QT4Agg with PyQT4

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions