-
Notifications
You must be signed in to change notification settings - Fork 45
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
Santa Cruz Mountains map (also, annotating is slightly hard) #7
Comments
Beautiful! I'll add this to the examples section if that's ok! I'll look at what I can do for those difficulties. At the very least, adding a |
Fine with me!
Yeah. I mean, there's already a
although I admit I'm not very well-versed in MPL transforms, but it seems like the axes used in this package are somewhat not trivial/straightforward to build. |
Closing as we added the beautiful example, but would be happy to merge improved annotating. |
I was doing this for a gift. One issue is that it seems the lat/long position is for zero-altitude. So to get the point right one needs the vertical off-set as well and how that's projected into the frame. |
Also, to match the font: import matplotlib.font_manager as fm
from ridge_map import FontManager
prop = fm.FontProperties(fname= rm.font.get_file()) and then add ridges.text(scipp_coords[0]+0.005, scipp_coords[1]+0.005, 'SCIPP', size=40, color="white", transform=ridges.transAxes, verticalalignment="bottom", zorder=len(values)+10,fontproperties=prop) |
Here's the code that generates a nice map of the Santa Cruz Mountains (and adds a point identifying the Santa Cruz Institute for Particle Physics)
The text was updated successfully, but these errors were encountered: