Cartopy: axis label - workaround

前端 未结 3 1132
误落风尘
误落风尘 2021-01-13 00:23

I am looking for a workaround to add x and y axis ticks and labels to a Cartopy map in Lambert projection.

The solution I have come up with is just an approximation

3条回答
  •  猫巷女王i
    2021-01-13 01:10

    My (quite crude) work-around to this is detailed in this notebook: http://nbviewer.ipython.org/gist/ajdawson/dd536f786741e987ae4e

    The notebook requires cartopy >= 0.12.

    All I've done is find the intersection of the appropriate gridline with the map boundary. I've assumed the map boundary will always be rectangular, and I can only label the bottom and left sides. Hopefully this might be useful as something to build on.

提交回复
热议问题