Live Chat

We'll need to share your messages (and your email address if you're logged in) with our live chat provider, Drift. Here's their privacy policy.

If you don't want to do this, you can email us instead at contact@anvil.works.

plotly.graph_objs.layout.geo Module

Functions

plotly.graph_objs.layout.geo.Center([lon=], [lat=]) → Center

Create a new ‘Center’ object

  • lon - Sets the longitude of the map's center. By default, the map's longitude center lies at the middle of the longitude range for scoped projection and above `projection.rotation.lon` otherwise.

  • lat - Sets the latitude of the map's center. For all projection types, the map's latitude center lies at the middle of the latitude range by default.


plotly.graph_objs.layout.geo.Domain([x=], [y=], [row=], [column=]) → Domain

Create a new ‘Domain’ object

  • x - Sets the horizontal domain of this geo subplot (in plot fraction). Note that geo subplots are constrained by domain. In general, when `projection.scale` is set to 1. a map will fit either its x or y domain, but not both.

  • y - Sets the vertical domain of this geo subplot (in plot fraction). Note that geo subplots are constrained by domain. In general, when `projection.scale` is set to 1. a map will fit either its x or y domain, but not both.

  • row - If there is a layout grid, use the domain for this row in the grid for this geo subplot . Note that geo subplots are constrained by domain. In general, when `projection.scale` is set to 1. a map will fit either its x or y domain, but not both.

  • column - If there is a layout grid, use the domain for this column in the grid for this geo subplot . Note that geo subplots are constrained by domain. In general, when `projection.scale` is set to 1. a map will fit either its x or y domain, but not both.


plotly.graph_objs.layout.geo.Lataxis([range=], [showgrid=], [tick0=], [dtick=], [gridcolor=], [gridwidth=]) → Lataxis

Create a new ‘Lataxis’ object

  • range - Sets the range of this axis (in degrees), sets the map's clipped coordinates.

  • showgrid - Sets whether or not graticule are shown on the map.

  • tick0 - Sets the graticule's starting tick longitude/latitude.

  • dtick - Sets the graticule's longitude/latitude tick step.

  • gridcolor - Sets the graticule's stroke color.

  • gridwidth - Sets the graticule's stroke width (in px).


plotly.graph_objs.layout.geo.Lonaxis([range=], [showgrid=], [tick0=], [dtick=], [gridcolor=], [gridwidth=]) → Lonaxis

Create a new ‘Lonaxis’ object

  • range - Sets the range of this axis (in degrees), sets the map's clipped coordinates.

  • showgrid - Sets whether or not graticule are shown on the map.

  • tick0 - Sets the graticule's starting tick longitude/latitude.

  • dtick - Sets the graticule's longitude/latitude tick step.

  • gridcolor - Sets the graticule's stroke color.

  • gridwidth - Sets the graticule's stroke width (in px).


plotly.graph_objs.layout.geo.Projection([type=], [rotation=], [parallels=], [scale=]) → Projection

Create a new ‘Projection’ object

  • type - Sets the projection type.

  • parallels - For conic projection types only. Sets the parallels (tangent, secant) where the cone intersects the sphere.

  • scale - Zooms in or out on the map view. A scale of *1* corresponds to the largest zoom level that fits the map's lon and lat ranges.


Globals



plotly.graph_objs.layout.geo