dopplershift on main
DOC: Pin Sphinx less than versi… Merge pull request #2131 from g… (compare)
greglucas on main
FIX: plot after contour shouldn… use update_datalim Merge pull request #2129 from r… (compare)
dopplershift on main
Specify proj 8 for minimal build Merge pull request #2132 from r… (compare)
dopplershift on main
TST/FIX: Test for instance rath… Merge pull request #2130 from g… (compare)
line_c = ax1.contour(lons, lats, ipvPlot, levels=[2],
colors=['blue'],
transform=ccrs.PlateCarree())
rotate_labels
to False and iterate through all the artists and set_visible(True)
.
conda install -q -y -c conda-forge/label/testing -c conda-forge --override-channels cython=0.28.5 flufl.lock matplotlib=2.2.2 numpy=1.16 owslib=0.17 pep8 pillow proj4=5.2.0 pyepsg pyshp pytest pytest-xdist python=3.6 requests scipy=1.2.0 setuptools_scm setuptools_scm_git_archive shapely
and it always ends with conflicts : Found conflicts! Looking for incompatible packages. …
ax1.quiver(lons[::3],lats[::3],uipvPlot,vipvPlot,transform=ccrs.PlateCarree())
File "/usr/local/lib/python3.8/dist-packages/Cartopy-0.18.0-py3.8-linux-x86_64.egg/cartopy/mpl/geoaxes.py", line 310, in wrapper
return func(self, *args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/Cartopy-0.18.0-py3.8-linux-x86_64.egg/cartopy/mpl/geoaxes.py", line 1841, in quiver
u, v = self.projection.transform_vectors(t, x, y, u, v)
File "lib/cartopy/_crs.pyx", line 568, in cartopy._crs.CRS.transform_vectors
UserWarning: Some vectors at source domain corners may not have been transformed correctly
ax1.quiver(lons[::3],lats[::3],uipvPlot,vipvPlot,transform=ccrs.PlateCarree()) File "/usr/local/lib/python3.8/dist-packages/Cartopy-0.18.0-py3.8-linux-x86_64.egg/cartopy/mpl/geoaxes.py", line 310, in wrapper return func(self, *args, **kwargs) File "/usr/local/lib/python3.8/dist-packages/Cartopy-0.18.0-py3.8-linux-x86_64.egg/cartopy/mpl/geoaxes.py", line 1841, in quiver u, v = self.projection.transform_vectors(t, x, y, u, v) File "lib/cartopy/_crs.pyx", line 568, in cartopy._crs.CRS.transform_vectors UserWarning: Some vectors at source domain corners may not have been transformed correctly
I forgot to mention that this warning does not generate a plot. The program just exits
gl.top_labels = False
in 0.18 I believe. https://scitools.org.uk/cartopy/docs/latest/matplotlib/gridliner.html
Are
uipvPlot
andvipvPlot
the same size aslons[::3]
andlats[::3]
? Have you tried makingPlateCarree()
the projection for plotting just to see if that works or if there's a data issue?
@dopplershift Sorry about that. I will try to keep it here. The original shapes are (73) lats and (144) lons. When I take lons[:3] and lats[:3] I get 48 and 25. So the shapes of uipvPlot and vipvPlot are (25,48) and (25,48) . The thing is that this error does not happen for all data sets. It is sporadic and happens periodically. What more information I need to print out so that I can move forward ?