Closed rabernat closed 5 years ago
cartopy 0.15.1 py36_5 conda-forge proj4 4.9.3 4 conda-forge
But what version of Proj were you using with Cartopy 0.16.0?
I can't reproduce on Python 3.7 with Cartopy 0.16 and Proj 4.9.3.
$ conda list proj
# packages in environment at /opt/conda:
#
# Name Version Build Channel
proj4 4.9.3 h470a237_8 conda-forge
pyproj 1.9.5.1 py36h508ed2a_6 conda-forge
Update: I realized that I mistakenly copied the conda / pip envs from the working environment (0.15.1) rather than the non-working one (0.16). I have updated my original post with the correct environment listing.
Looks like this could be a proj4 version issue?
Are you absolutely certain those versions don't work with Cartopy 0.16.0?
I take it back, I'm running pro 4.9.3. I've corrected above.
I have a similar problem. When I plot a collection of filled polygons (as a PolyCollection) + the stock image on a map with PlateCarree projection, the polygons and the stock image are perfectly visible. When I plot the same PolyCollection + stock image on a map with the Orthographic projection, the polygons and the stock image are not visible. However, the coastlines, borders etc. are perfectly visible on both projections.
I am running Cartopy 0.17, Matplotlib 2.2.3 and Proj4 4.9.3.
Difficult to say with that little information.
Are you absolutely certain those versions don't work with Cartopy 0.16.0?
I have no way to explain it, but the problem has gone away. I can't replicate any longer.
I'm fairly certain this was a bug in Proj 5.0.x that you may have not noticed get downgraded at some point. Current Cartopy raises a warning about it.
The problem disappeared in my environment when I added "transform=ccrs.PlateCarree()" to the PolyCollection parameters.
Please see the understanding transforms section of the documentation.
Description
Calling
.stock_img()
with Orthographic projection does not show anything.Shows this
This occurs with Cartopy 0.16.0 and matplotlib 3.0.1 (latest releases of each).
Instead, if I use Cartopy 0.15.1 and matplotlib 2.1.0 (from an older setup), I see this:
Full environment definition
### Operating system Linux ### Cartopy version 0.16.0 ### conda list ``` $ conda list # packages in environment at /opt/conda: # # Name Version Build Channel affine 2.2.1 py_0 conda-forge alembic 0.9.9 py_0 conda-forge appdirs 1.4.3 py_1 conda-forge asciitree 0.3.3 py_2 conda-forge asn1crypto 0.24.0 py36_0 conda-forge atomicwrites 1.2.1 py_0 conda-forge attrs 18.2.0 py_0 conda-forge backcall 0.1.0 py_0 conda-forge blas 1.1 openblas conda-forge bleach 2.1.3 py_0 conda-forge blinker 1.4 py_1 conda-forge blosc 1.14.4 hfc679d8_0 conda-forge bokeh 0.12.16 py36_0 conda-forge boost-cpp 1.67.0 h3a22d5f_0 conda-forge boto3 1.9.45 py_0 conda-forge botocore 1.12.45 py_0 conda-forge bottleneck 1.2.1 py36h7eb728f_1 conda-forge bqplot 0.11.2 py36_0 conda-forge bzip2 1.0.6 h470a237_2 conda-forge ca-certificates 2018.10.15 ha4d7672_0 conda-forge cachetools 2.1.0 py_0 conda-forge cairo 1.14.12 he6fea26_5 conda-forge cartopy 0.16.0 py36h81b52dc_2 conda-forge certifi 2018.10.15 py36_1000 conda-forge cffi 1.11.5 py36_0 conda-forge cftime 1.0.2.1 py36h7eb728f_0 conda-forge chardet 3.0.4 py36_0 conda-forge click 7.0 py_0 conda-forge click-plugins 1.0.4 py_0 conda-forge cligj 0.5.0 py_0 conda-forge cloudpickle 0.6.1 py_0 conda-forge colorcet 1.0.0 py_0 conda-forge conda 4.5.4 py36_0 conda-forge conda-env 2.6.0 0 conda-forge configurable-http-proxy 3.1.0 node8_1 conda-forge cryptography 2.2.1 py36_0 conda-forge curl 7.62.0 h74213dd_0 conda-forge cycler 0.10.0 py_1 conda-forge cython 0.29 py36hfc679d8_0 conda-forge cytoolz 0.9.0.1 py36h470a237_1 conda-forge dask 0.18.2 py_0 conda-forge dask-core 0.18.2 py_0 conda-forge dask-glm 0.1.0 0 conda-forge dask-kubernetes 0.4.0