Skip to content
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

fix(axis): remove deprecation warning #22

Merged
merged 4 commits into from
Apr 29, 2024
Merged

fix(axis): remove deprecation warning #22

merged 4 commits into from
Apr 29, 2024

Conversation

engeir
Copy link
Member

@engeir engeir commented Mar 11, 2024

This PR removes the deprecation warning when using change_log_axis_base, since the cosmoplots.mplstyle does not fully cover it's feature set.

This also removes the need to specify what axis should be updated by instead making an attempt to infer it based on the plotting methods that has been used ("loglog", "semilogx", ...). This of course only works if plt.loglog is called before change_log_axis_base.

@engeir engeir added bug Something isn't working enhancement New feature or request labels Mar 11, 2024
@engeir engeir linked an issue Mar 25, 2024 that may be closed by this pull request
@audunth
Copy link
Contributor

audunth commented Apr 29, 2024

I modified the comments so it is hopefully clearer if we discuss the x-axis, y-axis (or both), or the axes object.

Also, the readme now demonstrates that change_log_axis_base automatically finds the correct axis.

@engeir engeir merged commit 81b45f8 into main Apr 29, 2024
@engeir engeir deleted the fix-axis-base-warning branch April 29, 2024 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

refactor(tick-format): Use rcParams to set min_exponent
2 participants