-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
[Bug]: LogLocator with subs argument fragile. #24092
Copy link
Copy link
Closed
Labels
Difficulty: Hardhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issueshttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuesGood first issueOpen a pull request against these issues if there are no active ones!Open a pull request against these issues if there are no active ones!topic: ticks axis labels
Milestone
Metadata
Metadata
Assignees
Labels
Difficulty: Hardhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issueshttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuesGood first issueOpen a pull request against these issues if there are no active ones!Open a pull request against these issues if there are no active ones!topic: ticks axis labels
Bug summary
Logarithmic tick markers do not appear if the y-axis scales a sufficient range, with the
subskeyword argument ofticker.LogLocatorset to non-trivial values.Code for reproduction
Actual outcome
Expected outcome
I expect to see ticks in both cases, as appears in the "Good Plot".
Additional information
The problem is isolated to
ticker.LogLocator.tick_values(). This returns correct values in the first case (e.g.,np.array([1.e-01 2.e-01 5.e-01 1.e+00 2.e+00 5.e+00 1.e+01 2.e+01 5.e+01 1.e+02 2.e+02 5.e+02])), butnp.array([])in the second case.Operating system
Windows
Matplotlib Version
3.5.2
Matplotlib Backend
module://backend_interagg
Python version
3.9.13
Jupyter version
No response
Installation
conda