plotting network and Cartopy

31 views
Skip to first unread message

Lukas Menholt

unread,
May 24, 2024, 6:02:08 AMMay 24
to pypsa
Hi PyPSA,

Does anyone else have a problem with pypsa.plot and Cartopy?

I am running my simulations on python 3.11 and have installed cartopy version 0.23, but when I try to plot the network, it gives the following warning:

WARNING:pypsa.plot:Cartopy needs to be installed to use `geomap=True`.

and no background map is used. Is there a compatibility issue with different versions maybe.

kind regards,
Lukas


Fabian Neumann

unread,
May 25, 2024, 5:18:12 AMMay 25
to pypsa
Hi Lukas,

Do you have cartopy installed? This is an optional dependency.

You can check:

pip list cartopy

or

conda list cartopy

Depending on which package manager you use.

If it's not there

pip install cartopy

or

conda install cartopy

Into the environment where you are running your code.

Best wishes,

Fabian N
Reply all
Reply to author
Forward
0 new messages