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

How to apply ax.margins to current axes limits? #7391

Closed
qAp opened this issue Nov 3, 2016 · 1 comment
Closed

How to apply ax.margins to current axes limits? #7391

qAp opened this issue Nov 3, 2016 · 1 comment

Comments

@qAp
Copy link

qAp commented Nov 3, 2016

Is there a way to use ax.margins to adjust the axes limits, after the axes limits have already been adjusted using ax.set_ylim? It appears that ax.margins has effect only if ax.set_ylim has not been used.

This notebook
http://nbviewer.jupyter.org/github/qap/offline_radiation_notebooks/blob/lblnew/longwave/lblnew_20160916/study__g1_threshold/n2o/band07_wn_1215_1380/P_50_T_250/4.e-21/matplotlib_axmargins.ipynb

describes a situation in which this need may arise.

Note: the y-axis is just an example, the same also applies to the x-axis (ax.set_xlim).

@efiring
Copy link
Member

efiring commented Nov 3, 2016

Please raise this question on matplotlib-users@python.org so there will be a wider collection of people available to reply, and more people potentially interested in the answer. We would like to keep github for bug reports and pull requests.

@efiring efiring closed this as completed Nov 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants