lets_plot.coord_map

lets_plot.coord_map(xlim=None, ylim=None, flip=False, projection='mercator')

Projects a portion of the earth, which is approximately spherical, onto a flat 2D plane. Map projections generally do not preserve straight lines, so this requires considerable computation.

Parameters
xlimlist

Limits (2 elements) for the x axis. 1st element defines lower limit, 2nd element defines upper limit. None means no lower / upper bound - depending on the index in list.

ylimlist

Limits (2 elements) for the y axis. 1st element defines lower limit, 2nd element defines upper limit. None means no lower / upper bound - depending on the index in list.

flipbool

Flips the coordinate system axisso that horizontal axis becomes vertical and vice versa.

projectionstr
Default is ‘mercator’
Returns
FeatureSpec

Coordinate system specification.

Examples