GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — [Bug]: LogLocator with subs argument fragile. · Issue #24092 · matplotlib/matplotlib Closed Labels Difficulty: Hardhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issueshttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuestopic: ticks axis labels🌱 Good 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! Milestone DescriptionBug summaryLogarithmic tick markers do not appear if the y-axis scales a sufficient range, with the Code for reproductionimport matplotlib.pyplot as plt import matplotlib.ticker import numpy as np ll = matplotlib.ticker.LogLocator(subs=(1, 2, 5)) ### The following code produces a plot with y-axis ticks at the expected locations. fig, ax = plt.subplots() x = np.arange(8) plt.semilogy(x, 10 ** x) ax.yaxis.set_major_locator(ll) ax.yaxis.set_minor_locator(ll) plt.title("Good Plot") plt.show() ### The following code produces a plot with no y-axis ticks, which is unexpected and undesired. fig, ax = plt.subplots() x = np.arange(9) # The only change is this line plt.semilogy(x, 10 ** x) ax.yaxis.set_major_locator(ll) ax.yaxis.set_minor_locator(ll) plt.title("Bad Plot") plt.show() ### The problem is isolated to here, which returns correct values in the first case, but np.array([]) in the second case: print(ll.tick_values(1, 1e7)) print(ll.tick_values(1, 1e8)) Actual outcomeExpected outcomeI expect to see ticks in both cases, as appears in the "Good Plot". Additional informationThe problem is isolated to Operating systemWindows Matplotlib Version3.5.2 Matplotlib Backendmodule://backend_interagg Python version3.9.13 Jupyter versionNo response Installationconda Activity
MetadataMetadataAssigneesLabelsDifficulty: Hardhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issueshttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuestopic: ticks axis labels🌱 Good 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! TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — 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. |