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

Issue on page /gallery/Panels/NCL_panel_10.html #631

Open
eroesler opened this issue Jan 6, 2025 · 1 comment
Open

Issue on page /gallery/Panels/NCL_panel_10.html #631

eroesler opened this issue Jan 6, 2025 · 1 comment
Assignees
Labels
support Support request opened by outside user/collaborator

Comments

@eroesler
Copy link

eroesler commented Jan 6, 2025

How can the font size of the number labels on the contour plots?

There was a way to specify 'Helvetica Bold 24' in the old NCL code, which looked good for presentations and publication.

Is that possible in the query to matplotlib here, and in other contour plots?

@kafitzgerald
Copy link
Collaborator

Thanks for the question!

There are a few examples that adjust the label font size though I'm not sure how easy they are to search for. Here's one: https://geocat-examples.readthedocs.io/en/latest/gallery/Contours/NCL_conLev_1.html. In particular you'll want to adjust the fontsize argument for clabel.

There's some nice example / tutorial style documentation on this (i.e. manipulating contours and contours labels) from Matplotlib as well: https://matplotlib.org/stable/gallery/images_contours_and_fields/contour_demo.html

Let me know if this is what you were looking for. And you have any suggestions for how to make it more findable we'd love to hear them!

@kafitzgerald kafitzgerald self-assigned this Jan 6, 2025
@kafitzgerald kafitzgerald added the support Support request opened by outside user/collaborator label Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Support request opened by outside user/collaborator
Projects
None yet
Development

No branches or pull requests

2 participants