We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using m.ax.clabel() to label contour-lines in a plot is currently not working.
m.ax.clabel()
After using clabel, the following problems occur
clabel
from eomaps import Maps import numpy as np Maps.config(log_level="debug") x, y = np.meshgrid(np.linspace(-40, 40, 50), np.linspace(-25, 30, 50)) data = x**2 + y**2 data = dict( data=pd.DataFrame( dict(lon=x.ravel(), lat=y.ravel(), value=data.ravel()) ).sample(500), x="lon", y="lat", parameter="value", ) m = Maps(ax=221, figsize=(10, 6)) m.add_feature.preset.coastline() m2 = m.new_layer("contour") m2 .set_data(**data) m2.set_shape.contour(filled=False) m2.plot_map() arts = m2.ax.clabel(m2.coll.contour_set) for a in arts: m2.BM.add_bg_artist(a, layer=m2.layer) m.show_layer(m.layer, m2.layer)
Describe the solution you'd like Would be nice to get this working... or to explicitly provide a method to properly label contour-plots.
Issue was reported in the PyOpenSci Review
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Using
m.ax.clabel()
to label contour-lines in a plot is currently not working.After using
clabel
, the following problems occurDescribe the solution you'd like
Would be nice to get this working... or to explicitly provide a method to properly label contour-plots.
The text was updated successfully, but these errors were encountered: