yt.visualization.geo_plot_utils module

yt.visualization.geo_plot_utils.cartopy_importer(transform_name)[source]

Convenience function to import cartopy projection types

yt.visualization.geo_plot_utils.get_mpl_transform(mpl_proj) LambdaType | None[source]

This returns an instantiated transform function given a transform function name and arguments.

Parameters:

mpl_proj (string or tuple) – the matplotlib projection type. Can take the form of string or tuple.

Examples

>>> get_mpl_transform("PlateCarree")
>>> get_mpl_transform(
...     ("RotatedPole", (), {"pole_latitude": 37.5, "pole_longitude": 177.5})
... )