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

Can geogrid simulator add 'd01','d02' labels to it? #214

Open
singledoggy opened this issue Nov 24, 2021 · 2 comments
Open

Can geogrid simulator add 'd01','d02' labels to it? #214

singledoggy opened this issue Nov 24, 2021 · 2 comments

Comments

@singledoggy
Copy link

If salem has plan to add it in default or there is a simple way to do it?

@fmaussion
Copy link
Owner

fmaussion commented Nov 30, 2021

yes, this sounds like a good idea. Since users have access to the maps and do the plot themselves, they could add it to the axes themselves, but arguably this could be made a bit easier in salem itself.

The way to go would be to add a call to m.set_text() after having added the geometry here:

salem/salem/wrftools.py

Lines 791 to 794 in 0ae5885

m.set_geometry(l1, crs=cg.proj, linewidth=(len(out)-j),
zorder=5)
maps.append(m)

@singledoggy
Copy link
Author

singledoggy commented Nov 30, 2021

Thanks for your work! And this solution is great, I can adjust the postion myself for now.

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