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 change tick label size is unclear #42

Open
erykoff opened this issue Apr 11, 2023 · 2 comments
Open

How to change tick label size is unclear #42

erykoff opened this issue Apr 11, 2023 · 2 comments

Comments

@erykoff
Copy link
Collaborator

erykoff commented Apr 11, 2023

I heard from @nsevilla that it was not obvious how to change the x/y tick label size. Right now it uses the setting plt.rcParams['[x|y]tick.labelsize'] provided that was set prior to creating the skyproj. This is (a) not documented; (b) not obvious; (c) requires clobbering your general preferences.

I will add documentation about this, as well as adding overrides on initialization such that you can do something like sp = skyproj.McBrydeSkyproj(ax=ax, xtick_labelsize=XX, ytick_labelsize=YY) which should be a more obvious API.

@esheldon
Copy link
Collaborator

The number of such keywords could blow up quickly. Would it make more sense to allow the user to send something like a rcparams dict?

@erykoff
Copy link
Collaborator Author

erykoff commented Apr 11, 2023

Interesting question. Right now only xtick.labelsize, ytick.labelsize, and axes.linewidth are the only rc params that have been hard-coded into the map making. So these (at least) should have special handling at initialization, I think. If the user sent in a full rcparams dict I'm not sure how to make use of that for all the myriad options without clobbering the overall globals.

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