first commit

This commit is contained in:
Ayxan
2022-05-23 00:16:32 +04:00
commit d660f2a4ca
24786 changed files with 4428337 additions and 0 deletions

View File

@@ -0,0 +1,77 @@
import sys
from typing import TYPE_CHECKING
if sys.version_info < (3, 7) or TYPE_CHECKING:
from ._visible import VisibleValidator
from ._uirevision import UirevisionValidator
from ._subunitwidth import SubunitwidthValidator
from ._subunitcolor import SubunitcolorValidator
from ._showsubunits import ShowsubunitsValidator
from ._showrivers import ShowriversValidator
from ._showocean import ShowoceanValidator
from ._showland import ShowlandValidator
from ._showlakes import ShowlakesValidator
from ._showframe import ShowframeValidator
from ._showcountries import ShowcountriesValidator
from ._showcoastlines import ShowcoastlinesValidator
from ._scope import ScopeValidator
from ._riverwidth import RiverwidthValidator
from ._rivercolor import RivercolorValidator
from ._resolution import ResolutionValidator
from ._projection import ProjectionValidator
from ._oceancolor import OceancolorValidator
from ._lonaxis import LonaxisValidator
from ._lataxis import LataxisValidator
from ._landcolor import LandcolorValidator
from ._lakecolor import LakecolorValidator
from ._framewidth import FramewidthValidator
from ._framecolor import FramecolorValidator
from ._fitbounds import FitboundsValidator
from ._domain import DomainValidator
from ._countrywidth import CountrywidthValidator
from ._countrycolor import CountrycolorValidator
from ._coastlinewidth import CoastlinewidthValidator
from ._coastlinecolor import CoastlinecolorValidator
from ._center import CenterValidator
from ._bgcolor import BgcolorValidator
else:
from _plotly_utils.importers import relative_import
__all__, __getattr__, __dir__ = relative_import(
__name__,
[],
[
"._visible.VisibleValidator",
"._uirevision.UirevisionValidator",
"._subunitwidth.SubunitwidthValidator",
"._subunitcolor.SubunitcolorValidator",
"._showsubunits.ShowsubunitsValidator",
"._showrivers.ShowriversValidator",
"._showocean.ShowoceanValidator",
"._showland.ShowlandValidator",
"._showlakes.ShowlakesValidator",
"._showframe.ShowframeValidator",
"._showcountries.ShowcountriesValidator",
"._showcoastlines.ShowcoastlinesValidator",
"._scope.ScopeValidator",
"._riverwidth.RiverwidthValidator",
"._rivercolor.RivercolorValidator",
"._resolution.ResolutionValidator",
"._projection.ProjectionValidator",
"._oceancolor.OceancolorValidator",
"._lonaxis.LonaxisValidator",
"._lataxis.LataxisValidator",
"._landcolor.LandcolorValidator",
"._lakecolor.LakecolorValidator",
"._framewidth.FramewidthValidator",
"._framecolor.FramecolorValidator",
"._fitbounds.FitboundsValidator",
"._domain.DomainValidator",
"._countrywidth.CountrywidthValidator",
"._countrycolor.CountrycolorValidator",
"._coastlinewidth.CoastlinewidthValidator",
"._coastlinecolor.CoastlinecolorValidator",
"._center.CenterValidator",
"._bgcolor.BgcolorValidator",
],
)

View File

@@ -0,0 +1,11 @@
import _plotly_utils.basevalidators
class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator):
def __init__(self, plotly_name="bgcolor", parent_name="layout.geo", **kwargs):
super(BgcolorValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
**kwargs,
)

View File

@@ -0,0 +1,27 @@
import _plotly_utils.basevalidators
class CenterValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(self, plotly_name="center", parent_name="layout.geo", **kwargs):
super(CenterValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
data_class_str=kwargs.pop("data_class_str", "Center"),
data_docs=kwargs.pop(
"data_docs",
"""
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.
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.
""",
),
**kwargs,
)

View File

@@ -0,0 +1,13 @@
import _plotly_utils.basevalidators
class CoastlinecolorValidator(_plotly_utils.basevalidators.ColorValidator):
def __init__(
self, plotly_name="coastlinecolor", parent_name="layout.geo", **kwargs
):
super(CoastlinecolorValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
**kwargs,
)

View File

@@ -0,0 +1,14 @@
import _plotly_utils.basevalidators
class CoastlinewidthValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(
self, plotly_name="coastlinewidth", parent_name="layout.geo", **kwargs
):
super(CoastlinewidthValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
min=kwargs.pop("min", 0),
**kwargs,
)

View File

@@ -0,0 +1,11 @@
import _plotly_utils.basevalidators
class CountrycolorValidator(_plotly_utils.basevalidators.ColorValidator):
def __init__(self, plotly_name="countrycolor", parent_name="layout.geo", **kwargs):
super(CountrycolorValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
**kwargs,
)

View File

@@ -0,0 +1,12 @@
import _plotly_utils.basevalidators
class CountrywidthValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(self, plotly_name="countrywidth", parent_name="layout.geo", **kwargs):
super(CountrywidthValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
min=kwargs.pop("min", 0),
**kwargs,
)

View File

@@ -0,0 +1,42 @@
import _plotly_utils.basevalidators
class DomainValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(self, plotly_name="domain", parent_name="layout.geo", **kwargs):
super(DomainValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
data_class_str=kwargs.pop("data_class_str", "Domain"),
data_docs=kwargs.pop(
"data_docs",
"""
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.
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.
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.
""",
),
**kwargs,
)

View File

@@ -0,0 +1,12 @@
import _plotly_utils.basevalidators
class FitboundsValidator(_plotly_utils.basevalidators.EnumeratedValidator):
def __init__(self, plotly_name="fitbounds", parent_name="layout.geo", **kwargs):
super(FitboundsValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
values=kwargs.pop("values", [False, "locations", "geojson"]),
**kwargs,
)

View File

@@ -0,0 +1,11 @@
import _plotly_utils.basevalidators
class FramecolorValidator(_plotly_utils.basevalidators.ColorValidator):
def __init__(self, plotly_name="framecolor", parent_name="layout.geo", **kwargs):
super(FramecolorValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
**kwargs,
)

View File

@@ -0,0 +1,12 @@
import _plotly_utils.basevalidators
class FramewidthValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(self, plotly_name="framewidth", parent_name="layout.geo", **kwargs):
super(FramewidthValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
min=kwargs.pop("min", 0),
**kwargs,
)

View File

@@ -0,0 +1,11 @@
import _plotly_utils.basevalidators
class LakecolorValidator(_plotly_utils.basevalidators.ColorValidator):
def __init__(self, plotly_name="lakecolor", parent_name="layout.geo", **kwargs):
super(LakecolorValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
**kwargs,
)

View File

@@ -0,0 +1,11 @@
import _plotly_utils.basevalidators
class LandcolorValidator(_plotly_utils.basevalidators.ColorValidator):
def __init__(self, plotly_name="landcolor", parent_name="layout.geo", **kwargs):
super(LandcolorValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
**kwargs,
)

View File

@@ -0,0 +1,37 @@
import _plotly_utils.basevalidators
class LataxisValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(self, plotly_name="lataxis", parent_name="layout.geo", **kwargs):
super(LataxisValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
data_class_str=kwargs.pop("data_class_str", "Lataxis"),
data_docs=kwargs.pop(
"data_docs",
"""
dtick
Sets the graticule's longitude/latitude tick
step.
gridcolor
Sets the graticule's stroke color.
griddash
Sets the dash style of lines. Set to a dash
type string ("solid", "dot", "dash",
"longdash", "dashdot", or "longdashdot") or a
dash length list in px (eg "5px,10px,2px,2px").
gridwidth
Sets the graticule's stroke width (in px).
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.
""",
),
**kwargs,
)

View File

@@ -0,0 +1,37 @@
import _plotly_utils.basevalidators
class LonaxisValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(self, plotly_name="lonaxis", parent_name="layout.geo", **kwargs):
super(LonaxisValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
data_class_str=kwargs.pop("data_class_str", "Lonaxis"),
data_docs=kwargs.pop(
"data_docs",
"""
dtick
Sets the graticule's longitude/latitude tick
step.
gridcolor
Sets the graticule's stroke color.
griddash
Sets the dash style of lines. Set to a dash
type string ("solid", "dot", "dash",
"longdash", "dashdot", or "longdashdot") or a
dash length list in px (eg "5px,10px,2px,2px").
gridwidth
Sets the graticule's stroke width (in px).
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.
""",
),
**kwargs,
)

View File

@@ -0,0 +1,11 @@
import _plotly_utils.basevalidators
class OceancolorValidator(_plotly_utils.basevalidators.ColorValidator):
def __init__(self, plotly_name="oceancolor", parent_name="layout.geo", **kwargs):
super(OceancolorValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
**kwargs,
)

View File

@@ -0,0 +1,38 @@
import _plotly_utils.basevalidators
class ProjectionValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(self, plotly_name="projection", parent_name="layout.geo", **kwargs):
super(ProjectionValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
data_class_str=kwargs.pop("data_class_str", "Projection"),
data_docs=kwargs.pop(
"data_docs",
"""
distance
For satellite projection type only. Sets the
distance from the center of the sphere to the
point of view as a proportion of the spheres
radius.
parallels
For conic projection types only. Sets the
parallels (tangent, secant) where the cone
intersects the sphere.
rotation
:class:`plotly.graph_objects.layout.geo.project
ion.Rotation` instance or dict with compatible
properties
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.
tilt
For satellite projection type only. Sets the
tilt angle of perspective projection.
type
Sets the projection type.
""",
),
**kwargs,
)

View File

@@ -0,0 +1,13 @@
import _plotly_utils.basevalidators
class ResolutionValidator(_plotly_utils.basevalidators.EnumeratedValidator):
def __init__(self, plotly_name="resolution", parent_name="layout.geo", **kwargs):
super(ResolutionValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
coerce_number=kwargs.pop("coerce_number", True),
edit_type=kwargs.pop("edit_type", "plot"),
values=kwargs.pop("values", [110, 50]),
**kwargs,
)

View File

@@ -0,0 +1,11 @@
import _plotly_utils.basevalidators
class RivercolorValidator(_plotly_utils.basevalidators.ColorValidator):
def __init__(self, plotly_name="rivercolor", parent_name="layout.geo", **kwargs):
super(RivercolorValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
**kwargs,
)

View File

@@ -0,0 +1,12 @@
import _plotly_utils.basevalidators
class RiverwidthValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(self, plotly_name="riverwidth", parent_name="layout.geo", **kwargs):
super(RiverwidthValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
min=kwargs.pop("min", 0),
**kwargs,
)

View File

@@ -0,0 +1,23 @@
import _plotly_utils.basevalidators
class ScopeValidator(_plotly_utils.basevalidators.EnumeratedValidator):
def __init__(self, plotly_name="scope", parent_name="layout.geo", **kwargs):
super(ScopeValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
values=kwargs.pop(
"values",
[
"africa",
"asia",
"europe",
"north america",
"south america",
"usa",
"world",
],
),
**kwargs,
)

View File

@@ -0,0 +1,13 @@
import _plotly_utils.basevalidators
class ShowcoastlinesValidator(_plotly_utils.basevalidators.BooleanValidator):
def __init__(
self, plotly_name="showcoastlines", parent_name="layout.geo", **kwargs
):
super(ShowcoastlinesValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
**kwargs,
)

View File

@@ -0,0 +1,11 @@
import _plotly_utils.basevalidators
class ShowcountriesValidator(_plotly_utils.basevalidators.BooleanValidator):
def __init__(self, plotly_name="showcountries", parent_name="layout.geo", **kwargs):
super(ShowcountriesValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
**kwargs,
)

View File

@@ -0,0 +1,11 @@
import _plotly_utils.basevalidators
class ShowframeValidator(_plotly_utils.basevalidators.BooleanValidator):
def __init__(self, plotly_name="showframe", parent_name="layout.geo", **kwargs):
super(ShowframeValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
**kwargs,
)

View File

@@ -0,0 +1,11 @@
import _plotly_utils.basevalidators
class ShowlakesValidator(_plotly_utils.basevalidators.BooleanValidator):
def __init__(self, plotly_name="showlakes", parent_name="layout.geo", **kwargs):
super(ShowlakesValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
**kwargs,
)

View File

@@ -0,0 +1,11 @@
import _plotly_utils.basevalidators
class ShowlandValidator(_plotly_utils.basevalidators.BooleanValidator):
def __init__(self, plotly_name="showland", parent_name="layout.geo", **kwargs):
super(ShowlandValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
**kwargs,
)

View File

@@ -0,0 +1,11 @@
import _plotly_utils.basevalidators
class ShowoceanValidator(_plotly_utils.basevalidators.BooleanValidator):
def __init__(self, plotly_name="showocean", parent_name="layout.geo", **kwargs):
super(ShowoceanValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
**kwargs,
)

View File

@@ -0,0 +1,11 @@
import _plotly_utils.basevalidators
class ShowriversValidator(_plotly_utils.basevalidators.BooleanValidator):
def __init__(self, plotly_name="showrivers", parent_name="layout.geo", **kwargs):
super(ShowriversValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
**kwargs,
)

View File

@@ -0,0 +1,11 @@
import _plotly_utils.basevalidators
class ShowsubunitsValidator(_plotly_utils.basevalidators.BooleanValidator):
def __init__(self, plotly_name="showsubunits", parent_name="layout.geo", **kwargs):
super(ShowsubunitsValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
**kwargs,
)

View File

@@ -0,0 +1,11 @@
import _plotly_utils.basevalidators
class SubunitcolorValidator(_plotly_utils.basevalidators.ColorValidator):
def __init__(self, plotly_name="subunitcolor", parent_name="layout.geo", **kwargs):
super(SubunitcolorValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
**kwargs,
)

View File

@@ -0,0 +1,12 @@
import _plotly_utils.basevalidators
class SubunitwidthValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(self, plotly_name="subunitwidth", parent_name="layout.geo", **kwargs):
super(SubunitwidthValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
min=kwargs.pop("min", 0),
**kwargs,
)

View File

@@ -0,0 +1,11 @@
import _plotly_utils.basevalidators
class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator):
def __init__(self, plotly_name="uirevision", parent_name="layout.geo", **kwargs):
super(UirevisionValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "none"),
**kwargs,
)

View File

@@ -0,0 +1,11 @@
import _plotly_utils.basevalidators
class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator):
def __init__(self, plotly_name="visible", parent_name="layout.geo", **kwargs):
super(VisibleValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
**kwargs,
)

View File

@@ -0,0 +1,12 @@
import sys
from typing import TYPE_CHECKING
if sys.version_info < (3, 7) or TYPE_CHECKING:
from ._lon import LonValidator
from ._lat import LatValidator
else:
from _plotly_utils.importers import relative_import
__all__, __getattr__, __dir__ = relative_import(
__name__, [], ["._lon.LonValidator", "._lat.LatValidator"]
)

View File

@@ -0,0 +1,11 @@
import _plotly_utils.basevalidators
class LatValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(self, plotly_name="lat", parent_name="layout.geo.center", **kwargs):
super(LatValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
**kwargs,
)

View File

@@ -0,0 +1,11 @@
import _plotly_utils.basevalidators
class LonValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(self, plotly_name="lon", parent_name="layout.geo.center", **kwargs):
super(LonValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
**kwargs,
)

View File

@@ -0,0 +1,21 @@
import sys
from typing import TYPE_CHECKING
if sys.version_info < (3, 7) or TYPE_CHECKING:
from ._y import YValidator
from ._x import XValidator
from ._row import RowValidator
from ._column import ColumnValidator
else:
from _plotly_utils.importers import relative_import
__all__, __getattr__, __dir__ = relative_import(
__name__,
[],
[
"._y.YValidator",
"._x.XValidator",
"._row.RowValidator",
"._column.ColumnValidator",
],
)

View File

@@ -0,0 +1,12 @@
import _plotly_utils.basevalidators
class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator):
def __init__(self, plotly_name="column", parent_name="layout.geo.domain", **kwargs):
super(ColumnValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
min=kwargs.pop("min", 0),
**kwargs,
)

View File

@@ -0,0 +1,12 @@
import _plotly_utils.basevalidators
class RowValidator(_plotly_utils.basevalidators.IntegerValidator):
def __init__(self, plotly_name="row", parent_name="layout.geo.domain", **kwargs):
super(RowValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
min=kwargs.pop("min", 0),
**kwargs,
)

View File

@@ -0,0 +1,18 @@
import _plotly_utils.basevalidators
class XValidator(_plotly_utils.basevalidators.InfoArrayValidator):
def __init__(self, plotly_name="x", parent_name="layout.geo.domain", **kwargs):
super(XValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
items=kwargs.pop(
"items",
[
{"editType": "plot", "max": 1, "min": 0, "valType": "number"},
{"editType": "plot", "max": 1, "min": 0, "valType": "number"},
],
),
**kwargs,
)

View File

@@ -0,0 +1,18 @@
import _plotly_utils.basevalidators
class YValidator(_plotly_utils.basevalidators.InfoArrayValidator):
def __init__(self, plotly_name="y", parent_name="layout.geo.domain", **kwargs):
super(YValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
items=kwargs.pop(
"items",
[
{"editType": "plot", "max": 1, "min": 0, "valType": "number"},
{"editType": "plot", "max": 1, "min": 0, "valType": "number"},
],
),
**kwargs,
)

View File

@@ -0,0 +1,27 @@
import sys
from typing import TYPE_CHECKING
if sys.version_info < (3, 7) or TYPE_CHECKING:
from ._tick0 import Tick0Validator
from ._showgrid import ShowgridValidator
from ._range import RangeValidator
from ._gridwidth import GridwidthValidator
from ._griddash import GriddashValidator
from ._gridcolor import GridcolorValidator
from ._dtick import DtickValidator
else:
from _plotly_utils.importers import relative_import
__all__, __getattr__, __dir__ = relative_import(
__name__,
[],
[
"._tick0.Tick0Validator",
"._showgrid.ShowgridValidator",
"._range.RangeValidator",
"._gridwidth.GridwidthValidator",
"._griddash.GriddashValidator",
"._gridcolor.GridcolorValidator",
"._dtick.DtickValidator",
],
)

View File

@@ -0,0 +1,11 @@
import _plotly_utils.basevalidators
class DtickValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(self, plotly_name="dtick", parent_name="layout.geo.lataxis", **kwargs):
super(DtickValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
**kwargs,
)

View File

@@ -0,0 +1,13 @@
import _plotly_utils.basevalidators
class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator):
def __init__(
self, plotly_name="gridcolor", parent_name="layout.geo.lataxis", **kwargs
):
super(GridcolorValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
**kwargs,
)

View File

@@ -0,0 +1,16 @@
import _plotly_utils.basevalidators
class GriddashValidator(_plotly_utils.basevalidators.DashValidator):
def __init__(
self, plotly_name="griddash", parent_name="layout.geo.lataxis", **kwargs
):
super(GriddashValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
values=kwargs.pop(
"values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"]
),
**kwargs,
)

View File

@@ -0,0 +1,14 @@
import _plotly_utils.basevalidators
class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(
self, plotly_name="gridwidth", parent_name="layout.geo.lataxis", **kwargs
):
super(GridwidthValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
min=kwargs.pop("min", 0),
**kwargs,
)

View File

@@ -0,0 +1,18 @@
import _plotly_utils.basevalidators
class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator):
def __init__(self, plotly_name="range", parent_name="layout.geo.lataxis", **kwargs):
super(RangeValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
items=kwargs.pop(
"items",
[
{"editType": "plot", "valType": "number"},
{"editType": "plot", "valType": "number"},
],
),
**kwargs,
)

View File

@@ -0,0 +1,13 @@
import _plotly_utils.basevalidators
class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator):
def __init__(
self, plotly_name="showgrid", parent_name="layout.geo.lataxis", **kwargs
):
super(ShowgridValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
**kwargs,
)

View File

@@ -0,0 +1,11 @@
import _plotly_utils.basevalidators
class Tick0Validator(_plotly_utils.basevalidators.NumberValidator):
def __init__(self, plotly_name="tick0", parent_name="layout.geo.lataxis", **kwargs):
super(Tick0Validator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
**kwargs,
)

View File

@@ -0,0 +1,27 @@
import sys
from typing import TYPE_CHECKING
if sys.version_info < (3, 7) or TYPE_CHECKING:
from ._tick0 import Tick0Validator
from ._showgrid import ShowgridValidator
from ._range import RangeValidator
from ._gridwidth import GridwidthValidator
from ._griddash import GriddashValidator
from ._gridcolor import GridcolorValidator
from ._dtick import DtickValidator
else:
from _plotly_utils.importers import relative_import
__all__, __getattr__, __dir__ = relative_import(
__name__,
[],
[
"._tick0.Tick0Validator",
"._showgrid.ShowgridValidator",
"._range.RangeValidator",
"._gridwidth.GridwidthValidator",
"._griddash.GriddashValidator",
"._gridcolor.GridcolorValidator",
"._dtick.DtickValidator",
],
)

View File

@@ -0,0 +1,11 @@
import _plotly_utils.basevalidators
class DtickValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(self, plotly_name="dtick", parent_name="layout.geo.lonaxis", **kwargs):
super(DtickValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
**kwargs,
)

View File

@@ -0,0 +1,13 @@
import _plotly_utils.basevalidators
class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator):
def __init__(
self, plotly_name="gridcolor", parent_name="layout.geo.lonaxis", **kwargs
):
super(GridcolorValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
**kwargs,
)

View File

@@ -0,0 +1,16 @@
import _plotly_utils.basevalidators
class GriddashValidator(_plotly_utils.basevalidators.DashValidator):
def __init__(
self, plotly_name="griddash", parent_name="layout.geo.lonaxis", **kwargs
):
super(GriddashValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
values=kwargs.pop(
"values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"]
),
**kwargs,
)

View File

@@ -0,0 +1,14 @@
import _plotly_utils.basevalidators
class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(
self, plotly_name="gridwidth", parent_name="layout.geo.lonaxis", **kwargs
):
super(GridwidthValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
min=kwargs.pop("min", 0),
**kwargs,
)

View File

@@ -0,0 +1,18 @@
import _plotly_utils.basevalidators
class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator):
def __init__(self, plotly_name="range", parent_name="layout.geo.lonaxis", **kwargs):
super(RangeValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
items=kwargs.pop(
"items",
[
{"editType": "plot", "valType": "number"},
{"editType": "plot", "valType": "number"},
],
),
**kwargs,
)

View File

@@ -0,0 +1,13 @@
import _plotly_utils.basevalidators
class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator):
def __init__(
self, plotly_name="showgrid", parent_name="layout.geo.lonaxis", **kwargs
):
super(ShowgridValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
**kwargs,
)

View File

@@ -0,0 +1,11 @@
import _plotly_utils.basevalidators
class Tick0Validator(_plotly_utils.basevalidators.NumberValidator):
def __init__(self, plotly_name="tick0", parent_name="layout.geo.lonaxis", **kwargs):
super(Tick0Validator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
**kwargs,
)

View File

@@ -0,0 +1,25 @@
import sys
from typing import TYPE_CHECKING
if sys.version_info < (3, 7) or TYPE_CHECKING:
from ._type import TypeValidator
from ._tilt import TiltValidator
from ._scale import ScaleValidator
from ._rotation import RotationValidator
from ._parallels import ParallelsValidator
from ._distance import DistanceValidator
else:
from _plotly_utils.importers import relative_import
__all__, __getattr__, __dir__ = relative_import(
__name__,
[],
[
"._type.TypeValidator",
"._tilt.TiltValidator",
"._scale.ScaleValidator",
"._rotation.RotationValidator",
"._parallels.ParallelsValidator",
"._distance.DistanceValidator",
],
)

View File

@@ -0,0 +1,14 @@
import _plotly_utils.basevalidators
class DistanceValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(
self, plotly_name="distance", parent_name="layout.geo.projection", **kwargs
):
super(DistanceValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
min=kwargs.pop("min", 1.001),
**kwargs,
)

View File

@@ -0,0 +1,20 @@
import _plotly_utils.basevalidators
class ParallelsValidator(_plotly_utils.basevalidators.InfoArrayValidator):
def __init__(
self, plotly_name="parallels", parent_name="layout.geo.projection", **kwargs
):
super(ParallelsValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
items=kwargs.pop(
"items",
[
{"editType": "plot", "valType": "number"},
{"editType": "plot", "valType": "number"},
],
),
**kwargs,
)

View File

@@ -0,0 +1,28 @@
import _plotly_utils.basevalidators
class RotationValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(
self, plotly_name="rotation", parent_name="layout.geo.projection", **kwargs
):
super(RotationValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
data_class_str=kwargs.pop("data_class_str", "Rotation"),
data_docs=kwargs.pop(
"data_docs",
"""
lat
Rotates the map along meridians (in degrees
North).
lon
Rotates the map along parallels (in degrees
East). Defaults to the center of the
`lonaxis.range` values.
roll
Roll the map (in degrees) For example, a roll
of 180 makes the map appear upside down.
""",
),
**kwargs,
)

View File

@@ -0,0 +1,14 @@
import _plotly_utils.basevalidators
class ScaleValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(
self, plotly_name="scale", parent_name="layout.geo.projection", **kwargs
):
super(ScaleValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
min=kwargs.pop("min", 0),
**kwargs,
)

View File

@@ -0,0 +1,13 @@
import _plotly_utils.basevalidators
class TiltValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(
self, plotly_name="tilt", parent_name="layout.geo.projection", **kwargs
):
super(TiltValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
**kwargs,
)

View File

@@ -0,0 +1,101 @@
import _plotly_utils.basevalidators
class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator):
def __init__(
self, plotly_name="type", parent_name="layout.geo.projection", **kwargs
):
super(TypeValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
values=kwargs.pop(
"values",
[
"airy",
"aitoff",
"albers",
"albers usa",
"august",
"azimuthal equal area",
"azimuthal equidistant",
"baker",
"bertin1953",
"boggs",
"bonne",
"bottomley",
"bromley",
"collignon",
"conic conformal",
"conic equal area",
"conic equidistant",
"craig",
"craster",
"cylindrical equal area",
"cylindrical stereographic",
"eckert1",
"eckert2",
"eckert3",
"eckert4",
"eckert5",
"eckert6",
"eisenlohr",
"equirectangular",
"fahey",
"foucaut",
"foucaut sinusoidal",
"ginzburg4",
"ginzburg5",
"ginzburg6",
"ginzburg8",
"ginzburg9",
"gnomonic",
"gringorten",
"gringorten quincuncial",
"guyou",
"hammer",
"hill",
"homolosine",
"hufnagel",
"hyperelliptical",
"kavrayskiy7",
"lagrange",
"larrivee",
"laskowski",
"loximuthal",
"mercator",
"miller",
"mollweide",
"mt flat polar parabolic",
"mt flat polar quartic",
"mt flat polar sinusoidal",
"natural earth",
"natural earth1",
"natural earth2",
"nell hammer",
"nicolosi",
"orthographic",
"patterson",
"peirce quincuncial",
"polyconic",
"rectangular polyconic",
"robinson",
"satellite",
"sinu mollweide",
"sinusoidal",
"stereographic",
"times",
"transverse mercator",
"van der grinten",
"van der grinten2",
"van der grinten3",
"van der grinten4",
"wagner4",
"wagner6",
"wiechel",
"winkel tripel",
"winkel3",
],
),
**kwargs,
)

View File

@@ -0,0 +1,15 @@
import sys
from typing import TYPE_CHECKING
if sys.version_info < (3, 7) or TYPE_CHECKING:
from ._roll import RollValidator
from ._lon import LonValidator
from ._lat import LatValidator
else:
from _plotly_utils.importers import relative_import
__all__, __getattr__, __dir__ = relative_import(
__name__,
[],
["._roll.RollValidator", "._lon.LonValidator", "._lat.LatValidator"],
)

View File

@@ -0,0 +1,13 @@
import _plotly_utils.basevalidators
class LatValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(
self, plotly_name="lat", parent_name="layout.geo.projection.rotation", **kwargs
):
super(LatValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
**kwargs,
)

View File

@@ -0,0 +1,13 @@
import _plotly_utils.basevalidators
class LonValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(
self, plotly_name="lon", parent_name="layout.geo.projection.rotation", **kwargs
):
super(LonValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
**kwargs,
)

View File

@@ -0,0 +1,13 @@
import _plotly_utils.basevalidators
class RollValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(
self, plotly_name="roll", parent_name="layout.geo.projection.rotation", **kwargs
):
super(RollValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
**kwargs,
)