Skip to content

tick_right() doesn't move scale factor #4043

Closed
@duncanmmacleod

Description

@duncanmmacleod

The YAxis.tick_right() method doesn't move a scale factor when the formatter introduces one. The following minimal example should demonstrate that:

import numpy
from matplotlib import pyplot
data = numpy.random.random(1e4) * 1e-22
fig, axes = pyplot.subplots(2, 1, sharex=True)
axes[0].plot(data)
axes[1].plot(data ** (.5))
axes[1].yaxis.set_label_position('right')
axes[1].yaxis.tick_right()

tick_right

The 1e-11 factor should ideally be on the right-hand-side with the tick labels.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions