How to plot sample point values overlaid onto a map #3510
-
Hi all! I am wondering how I can plot the numerical value of sample points on a map. Let's say my map is a contourf map for temperature and there is a spot that is 50F. How can I plot a small number 50 on the point that is 50F? I haven't found much online on how to do this so figured I'd reach out in here if anyone has any ideas. Thanks! Regards, Eric |
Beta Was this translation helpful? Give feedback.
Answered by
dopplershift
May 21, 2024
Replies: 1 comment 4 replies
-
sp = StationPlot(ax, lon, lat, transform=ccrs.PlateCarree())
sp.plot_parameter('C', my_data_vals) |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
edrewitz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
clabel()
matplotlib plotting method if you want to label the contoursplt.text()
orax.text()
with an appropriatetransform
argument to put the text at that locationStationPlot
class, which you could do something like: