-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2 tick minimum also for logscale #372
Conversation
…xis, unfortunately appears to have to be called after every call to `plot_2d`
…t changes but for some reason acts up
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #372 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 36 36
Lines 3032 3041 +9
=========================================
+ Hits 3032 3041 +9 ☔ View full report in Codecov by Sentry. |
@@ -355,6 +355,8 @@ def plot_2d(self, axes=None, *args, **kwargs): | |||
else: | |||
ax.plot([], []) | |||
|
|||
axes._set_logticks() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried setting the log ticks in the same place where we generally deal with tick locations, but plot_2d
overwrites these locations, so this call at the end of plot_2d
is needed...
This reverts commit 50afec0.
…to recent changes but for some reason acts up" This reverts commit eba68c8.
…not robust across different figure sizes, where often the yaxis is shorter than the xaxis, which caused failures in some CI settings
…sses with other tests, make the test work with default settings instead
…test is not robust across different figure sizes, where often the yaxis is shorter than the xaxis, which caused failures in some CI settings" This reverts commit 3bcc92d.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many thanks @lukashergt!
Description
As raised in #362, logscales can lead to plots with only a single tick mark. This PR aims at fixing that, such that every plot has a minimum of 2 tick marks.
Fixes #362
Checklist:
flake8 anesthetic tests
)pydocstyle --convention=numpy anesthetic
)python -m pytest
)